package com.augurit.common.base.form;

import java.util.List;

import com.augurit.common.syslog.service.ISysPropAuditLogService;
import com.augurit.common.syslog.web.form.SysPropAuditLogForm;

public abstract class PropAuditLogForm extends BaseForm {

	/**
	 * 按修改人分组加载字段审计日志信息
	 * @param form
	 * @param entity
	 * @param entityId
	 * @param sysPropAuditLogService
	 */
	public void loadOrderByUpdatorAndTime(String entity, String entityId, ISysPropAuditLogService sysPropAuditLogService){
		List<SysPropAuditLogForm> list = sysPropAuditLogService.getLogListOrderByUpdatorAndTime(entity, entityId);
		this.setPropAuditLogList(list);
	}
	
	/**
	 * 按修改的属性加载字段审计日志信息
	 * @param form
	 * @param entity
	 * @param entityId
	 * @param sysPropAuditLogService
	 */
	public void loadOrderByPropertyAndTime(String entity, String entityId, ISysPropAuditLogService sysPropAuditLogService){
		List<SysPropAuditLogForm> list = sysPropAuditLogService.getLogListOrderByPropertyCommentAndTime(entity, entityId);
		this.setPropAuditLogList(list);
	}
	
	//属性
	private List<SysPropAuditLogForm> propAuditLogList;	//字段审计日志列表

	public List<SysPropAuditLogForm> getPropAuditLogList() {
		return propAuditLogList;
	}

	public void setPropAuditLogList(List<SysPropAuditLogForm> propAuditLogList) {
		this.propAuditLogList = propAuditLogList;
	}
}
